<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <style type="text/css">

            #map_canvas {width:1300px;height: 650px;position: absolute;}

        </style>
        <title>Facelet Title</title>
        <h:outputScript library="js" name="sougo_map.js"/>
    </h:head>
    <h:body>
        <h:form id="form" >
            <h:inputText id="text1" value="福建省泉州市丰泽区东方银座"/>
            <h:inputText id="text2" value="福建省泉州市丰泽区东海滨城"/>
            <h:inputText id="text" value="#{mapMB.distans}"/>
<!--            <h:commandButton value="提交" action="{mapMB.action}"/>-->
            <div id="map_canvas"></div>
            <script type="text/javascript">
               initialize();

//                  two_point_distans(13046000,4714250,39.992792,116.326142)
    //            initialize(13046000,4714250);
                marker(13046000,4714250);
                make_marker();
            </script>
            <h:commandLink value="map1" action="map1"/>
        </h:form>
    </h:body>
</html>

